class CodeInfo {
  int? line;
  int? column;
  String? codeLine;
  String? uri;

  CodeInfo(this.line, this.column, this.codeLine, this.uri);

  @override
  String toString() {
    return 'line: $line; column: $column; codeLine: $codeLine';
  }

  String toStr() {
    return 'line: $line; column: $column; codeLine: $codeLine; uri: $uri';
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['line'] = line;
    data['column'] = column;
    data['codeLine'] = codeLine;
    data['uri'] = uri;
    return data;
  }

  CodeInfo.fromJson(Map<String, dynamic> json) {
    line = json['line'];
    column = json['column'];
    codeLine = json['codeLine'];
    uri = json['uri'];
  }
}
